﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
using Entities.System;

namespace Entities
{
    [DataContract]
    public class Status
    {
        [DataMember]
        public bool Success { get; set; }
        [DataMember]
        public string Code
        {
            get;
            set;
        }
        [DataMember]
        public string Message { get; set; }

    }

    [DataContract]
    public class Result<T>
    {
        [DataMember]
        public int total { get; set; }
        [DataMember]
        public List<T> rows { get; set; }
    }

    [DataContract]
    public class CacheData
    {
        [DataMember]
        public bool IsAdmin { get; set; }
        [DataMember]
        public List<Factory> Factories { get; set; }
        [DataMember]
        public List<FuncAction> FActions { get; set; }
        [DataMember]
        public User User { get; set; }
        [DataMember]
        public List<Customer> Customers { get; set; }
        [DataMember]
        public List<TEUser> TEUser { get; set; }
        [DataMember]
        public List<CheckBox_List> CheckBoxItems { get; set; }
        

    }
}
